package com.gitee.feizns.quickstart.mybatis.plus.query;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 关键词
 * @author feizns
 * @since 2025/3/4
 */
@Data
public class Keyword {

    /**
     * 需合并的列
     */
    @NotEmpty(message = "$keyword.columns:字段列表不能为空.")
    private String[] columns;

    /**
     * 操作符
     */
    private String operator = "$like";

    /**
     * 匹配值
     */
    private Object value;

}
